#pragma once

#include <DrawDebugHelpers.h>

/**********************************************************************************************************/
/*绘制调试球体*/
//绘制调试球体(持久)
#define DRAW_DEBUG_SPHERE(Center) \
	if(GetWorld())\
	{\
		DrawDebugSphere(GetWorld(), Center, 25.f, 12, FColor::Red, true);\
	}
//绘制调试球体(每帧)
#define DRAW_DEBUG_SPHERE_SigleFrame(Center) \
	if(GetWorld())\
	{\
		DrawDebugSphere(GetWorld(), Center, 25.f, 12, FColor::Red, false, -1.f);\
	}
/**********************************************************************************************************/
/*绘制线*/
//绘制线(持久)
#define DRAW_DEBUG_LINE(StartPosition, EndPosition) \
if(GetWorld())\
{\
	DrawDebugLine(GetWorld(), StartPosition, EndPosition, FColor::Red, true);\
}
//绘制线(每帧)
#define DRAW_DEBUG_LINE_SigleFrame(StartPosition, EndPosition) \
if(GetWorld())\
{\
	DrawDebugLine(GetWorld(), StartPosition, EndPosition, FColor::Red, false, -1.f, 0, 1);\
}
/**********************************************************************************************************/
/*绘制调试点*/
//绘制调试点(持久)
#define DRAW_DEBUG_POINT(Position)\
	if(GetWorld())\
	{\
		DrawDebugPoint(GetWorld(), Position, 15.f, FColor::Red, true);\
	}
//绘制调试点(每帧)
#define DRAW_DEBUG_POINT_SigleFrame(Position)\
	if(GetWorld())\
	{\
		DrawDebugPoint(GetWorld(), Position, 15.f, FColor::Red, false, -1.f, 0);\
	}
/**********************************************************************************************************/
//自制调试向量(持久)
#define DRAW_DEBUG_VECTOR(StartPosition, EndPosition)\
	if(GetWorld())\
	{\
		DrawDebugSphere(GetWorld(), StartPosition, 25.f, 12, FColor::Red, true, -1.f, 0, 1);\
		DrawDebugLine(GetWorld(), StartPosition, EndPosition, FColor::Red, true, -1.f, 0, 1);\
		DrawDebugPoint(GetWorld(), EndPosition, 15.f, FColor::Red, true, -1.f, 0);\
	}
//自制调试向量(每帧)
#define DRAW_DEBUG_VECTOR_SigleFrame(StartPosition, EndPosition)\
	if(GetWorld())\
	{\
		DrawDebugSphere(GetWorld(), StartPosition, 25.f, 12, FColor::Red, false, -1.f, 0, 1);\
		DrawDebugLine(GetWorld(), StartPosition, EndPosition, FColor::Red, false, -1.f, 0, 1);\
		DrawDebugPoint(GetWorld(), EndPosition, 15.f, FColor::Red, false, -1.f, 0);\
	}
/**********************************************************************************************************/



